<?php

$curFile = dirname(__FILE__);

// change the following paths if necessary
$yii = $curFile.'/framework/yii.php';
$config = $curFile.'/protected/config/main.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);
Yii::createWebApplication($config)->run();

/*AUTO COMPILE CSS FILES @[fan-cpp]*/
require_once($curFile.'/protected/components/lessc.inc.php');


foreach (Yii::app()->params['autoCompileLess'] as $lessFile => $cssFile)
{
	autoCompileLess($lessFile, $cssFile);
}

$baseUrl = Yii::app()->urlManager->baseUrl;
?>